<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
<link href="<%=request.getContextPath()%>/static/common/plugin/Uimaker/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/js/format+zh_CN,default,corechart.I.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/js/jquery.gvChart-1.0.1.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/js/jquery.ba-resize.min.js"></script>
<script language="javascript">
$(function(){	
	//导航切换
	$(".imglist li").click(function(){
		$(".imglist li.selected").removeClass("selected")
		$(this).addClass("selected");
	})	
})	
</script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>
<script type="text/javascript">
		gvChartInit();
		jQuery(document).ready(function(){

		jQuery('#myTable5').gvChart({
				chartType: 'PieChart',
				gvSettings: {
					vAxis: {title: 'No of players'},
					hAxis: {title: 'Month'},
					width: 650,
					height: 250
					}
			});
		});
</script>
</head>
<body>
<c:choose>
<c:when test="${empty mession }">  
<script type="text/javascript">

window.onload=function()
 {
     top.location.href="<%=request.getContextPath()%>/PositionServlet?command=list";
  }

</script>
</c:when>
<c:otherwise>
  <div class="place">
   <span>位置</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="<%=request.getContextPath()%>/view/company/company-register.jsp">企业注册</a></li>
    <li><a href="<%=request.getContextPath()%>/view/company/company-login.jsp">企业登录</a></li>
    <li><a href="<%=request.getContextPath()%>/view/talent/talent-register.jsp">用户注册</a></li>
    <c:choose>
    <c:when test="${empty talent }">  
    <li><a href="<%=request.getContextPath()%>/view/talent/talent-login.jsp">用户登录</a></li>
    </c:when>
    <c:otherwise>
    <li>欢迎用户：${talent.name } <a href="<%=request.getContextPath()%>/view/talent/talent-main.jsp">回到个人信息系统</a></li>
    </c:otherwise>
    </c:choose>
    <li><a href="lesson3-Servlet.pdf">downlaod</a></li>
    <li><a href="TalentServlet?command=download">下载</a></li>
    </ul>
    </div>
    
    
    <div class="mainbox">
    
    <div class="mainleft">
    
    
    <div class="leftinfo">
    <div class="listtitle"><a href="#" class="more1">更多</a>职位统计</div>
        
    
    <table class="imgtable">
    
    <thead>
    <tr>
    <th width="100px;">缩略图</th>
    <th>公司名称</th>
    <th>职位名称</th>
    <th>薪资区域</th>
    <th>公司地址</th>
    <th>发布时间</th>
    <th>点击</th>
    </tr>
    </thead>
    
    <tbody>
     <c:forEach items="${positionList }" var="position">
    <tr>
    <td class="imgtd"><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/img11.png" /></td>
    <td>${position.company$name }</td>
    <td><a href="<%=request.getContextPath()%>/PositionServlet?command=get&id=${position.id}">${position.name }</a></td>
    <td>${position.salary1 }~${position.salary2 }</td>
    <td>${position.company$address }</td>
    <td>${position.releaseTime }</td>
    <td>128</td>
    </tr>
    </c:forEach>
    </tbody>
    
    </table>

    
    </div>
    <!--leftinfo end-->
    
    
    <div class="leftinfos">
    
   
    <div class="infoleft">
    
    <div class="listtitle"><a href="#" class="more1">更多</a>待办事项</div>    
    <ul class="newlist">
    <li><a href="#">上海自贸区今日正式挂牌成立</a><b>10-09</b></li>
    <li><a href="#">习近平将访东南亚两国 首次出席APEC峰会</a><b>10-08</b></li>
    <li><a href="#">最高法:谎称炸弹致航班备降者从重追刑责</a><b>10-09</b></li>
    <li><a href="#">华北大部遭遇雾霾天 北京全城陷重污染</a><b>10-06</b></li>
    <li><a href="#">"环保专家"董良杰涉嫌寻衅滋事被刑拘</a><b>10-05</b></li>
    <li><a href="#">中央巡视组：重庆对一把手监督不到位</a><b>10-04</b></li>
    <li><a href="#">囧!悍马没改好成华丽马车(图)</a><b>10-03</b></li>
    </ul>   
    
    </div>
    
    
    <div class="inforight">
    <div class="listtitle"><a href="#" class="more1">添加</a>常用工具</div>
    
    <ul class="tooli">
    <li><span><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/d01.png" /></span><p><a href="#">信息资料</a></p></li>
    <li><span><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/d02.png" /></span><p><a href="#">编辑</a></p></li>
    <li><span><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/d03.png" /></span><p><a href="#">记事本</a></p></li>
    <li><span><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/d04.png" /></span><p><a href="#">任务日历</a></p></li>
    <li><span><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/d05.png" /></span><p><a href="#">图片管理</a></p></li>
    <li><span><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/d06.png" /></span><p><a href="#">交易</a></p></li>
    <li><span><img src="<%=request.getContextPath()%>/static/common/plugin/Uimaker/images/d07.png" /></span><p><a href="#">档案袋</a></p></li>    
    </ul>
    
    </div>
    
    
    </div>
    
    
    </div>
    <!--mainleft end-->
    
    
    <div class="mainright">
    
    
    <div class="dflist">
    <div class="listtitle"><a href="#" class="more1">更多</a>最新信息</div>    
    <ul class="newlist">
    <li><a href="#">上海自贸区今日正式挂牌成立</a></li>
    <li><a href="#">习近平将访东南亚两国 首次出席APEC峰会</a></li>
    <li><a href="#">最高法:谎称炸弹致航班备降者从重追刑责</a></li>
    <li><a href="#">华北大部遭遇雾霾天 北京全城陷重污染</a></li>
    <li><a href="#">"环保专家"董良杰涉嫌寻衅滋事被刑拘</a></li>
    <li><a href="#">中央巡视组：重庆对一把手监督不到位</a></li>
    <li><a href="#">囧!悍马没改好成华丽马车(图)</a></li>
    <li><a href="#">澳门黄金周加派稽查人员监察出租车违规行为</a></li>
    <li><a href="#">香港环境局长吁民众支持政府扩建堆填区</a></li> 
    </ul>        
    </div>
    
    
    <div class="dflist1">
    <div class="listtitle"><a href="#" class="more1">更多</a>信息统计</div>    
    <ul class="newlist">
    <li><i>会员数：</a></i>2535462</li>
    <li><i>文档数：</a></i>5546</li>
    <li><i>普通文章：</a></i>2315</li>
    <li><i>软件：</a></i>1585</li>
    <li><i>评论数：</a></i>5342</li>    
    </ul>        
    </div>
    
    

    
    
    </div>
    <!--mainright end-->
    
    
    </div>
  
</c:otherwise>
</c:choose>
</body>
<script type="text/javascript">
	setWidth();
	$(window).resize(function(){
		setWidth();	
	});
	function setWidth(){
		var width = ($('.leftinfos').width()-12)/2;
		$('.infoleft,.inforight').width(width);
	}
</script>


</html>